// 用户相关的借口	

import request from "@/utils/request";

/**
 * 
 * @param {String} account 账号
 *  @param {String} password 密码
 * @returns 
 */
export const userAccountLogin = ({ account, password }) => {


        return request('/login', 'post', { account, password })
    }
    /**
     * 获取短信验证码
     * @param {String} mobile  手机号
     * @returns 
     */
export const userMobileLoginMsg = (mobile) => {
    return request('/login/code', 'get', { mobile })
}

/**
 * 获取短信验证码
 * @param {String} mobile  手机号
 * @param {String} code  短信验证码
 * @returns 
 */
export const userMobileLogin = ({ code, mobile }) => {
    return request('/login/code', 'post', { mobile, code })
}